import { patchUrl, ProxyPrefix } from '../utils.js';
export function patchFetch() {
    const _fetch = globalThis.fetch;
    globalThis.fetch = function(url, options) {
        const { prefix =ProxyPrefix , ...nativeOptions } = options ?? {};
        const patchedUrl = patchUrl(url, prefix);
        return _fetch(patchedUrl, nativeOptions);
    };
}
